// 消息响应体规范
export interface IResponse {
    code: number,
    success: boolean,
    message: string,
    data: any
}

// 分页规范
export interface IPagination {
    total: number,
    current: number,
    size: number
    pages: number
}

// 修改后的 List 规范，包含分页和记录
export interface IList<T> extends IResponse {
    data: {
        list: T[],
        pagination: IPagination
    }
}